<{include file="db:TDMStats_index.html"}>
<script type="text/javascript">
	$(function() {
		$("#tabs").tabs();
	});
	</script>


<div id="tabs">
	<ul>
		<li style="list-style-type: none;"><a href="#stats"><{$smarty.const._AM_STATS_INFO}></a></li>
		<li style="list-style-type: none;"><a href="#prevision"><{$smarty.const._AM_FORECAST}></a></li>
		<li style="list-style-type: none;"><a href="#hour"><{$smarty.const._AM_BY_TODAY_HOUR}></a></li>
		<li style="list-style-type: none;"><a href="#ref"><{$smarty.const._AM_BY_REF}></a></li>
		<li style="list-style-type: none;"><a href="#pays"><{$smarty.const._AM_BY_PAYS}></a></li>
	</ul>
  
  <div id="stats">

	<table width="100%" border="0" cellspacing="1" cellpadding="4" class="outer">
	<tr>
	<th colspan="4" align="center"><{$lang_stats_info}></th>
	</tr>
	<tr class="even">
	      		    <td align="center" width="28%"><{$lang_total_visits}></td>
	      		    <td align="center" width="22%"><{$total}></td>
	      		    <td align="center" width="28%"><{$lang_now}></td>
	      		    <td align="center" nowrap width="22%"><{$date_now}></td>
	    		  </tr>
			  <tr class="odd">
	    		    <td align="center" width="28%"><{$lang_today}></td>
	      		    <td align="center" width="22%"><{$today}></td>
	      		    <td align="center" width="28%"><{$lang_ave_day}></td>
	      		    <td align="center" width="22%"><{$ava_day}></td>
	  		  </tr>
			  <tr class="even">
	      		    <td align="center" width="28%"><{$lang_this_week}></td>
	      		    <td align="center" width="22%"><{$this_week}></td>
		  	    <td align="center" width="28%"><{$lang_ave_week}></td>
	      		    <td align="center" width="22%"><{$ava_week}></td>
	  		  </tr>
	  		  <tr class="odd">
	      		    <td align="center" width="28%"><{$lang_this_mth}></td>
	      		    <td align="center" width="22%"><{$this_mth}></td>
		  	    <td align="center" width="28%"><{$lang_ave_mth}></td>
	      		    <td align="center" width="22%"><{$ava_mth}></td>
	  		  </tr>
	  		  <tr class="even">
	      		    <td align="center" width="28%"><{$lang_total_days}></td>
	      		    <td align="center" width="22%"><{$days}></td>
		  	    <td align="center" width="28%"><{$lang_ave_hour}></td>
	      		    <td align="center" width="22%"><{$ava_hour}></td>
	  		  </tr>
	  		  <tr class="odd">
	      		    <td align="center" width="28%"><{$lang_max_daycount}></td>
	      		    <td align="center" width="22%"><{$max_daycount}></td>
		  	    <td align="center" width="28%"><{$lang_max_date}></td>
	      		    <td align="center" width="22%"><{$max_date}></td>
	  		  </tr>
	  		  <tr class="even">
	      		    <td align="center" width="28%"><{$lang_max_weekcount}></td>
	      		    <td align="center" width="22%"><{$max_weekcount}></td>
		  	    <td align="center" width="28%"><{$lang_max_week}></td>
	      		    <td align="center" width="22%"><{$max_week}></td>
	  		  </tr>
	  		  <tr class="odd">
	      		    <td align="center" width="28%"><{$lang_max_mthcount}></td>
	      		    <td align="center" width="22%"><{$max_mthcount}></td>
		  	    <td align="center" width="28%"><{$lang_max_mth}></td>
	      		    <td align="center" width="22%"><{$max_mth}></td>
	  		  </tr>
	  		</table>

</div>
	

<div id="prevision">

	<table width="100%" border="0" cellspacing="1" cellpadding="4" class="outer">
		<tr>
			<th align="center"><{$lang_forecast}></th>
		</tr>
		<tr class="even">
			<td align="center" class="statstable"><{$lang_ave}>&nbsp;<b><{$cur_percent}>%</b>&nbsp;<{$lang_daily_visit}>&nbsp;<b><{$date_daily}></b>.<br /><{$lang_bas_nbr}>&nbsp;<b><{$daycount}></b>&nbsp;<{$lang_so_far}>&nbsp;<b><{$today_hits}></b>&nbsp;<{$lang_page_view}></td>
		</tr>
	</table>
	
</div>

	
<div id="hour">

	<table class="map" cellspacing="0" cellpadding="0">
      <caption align="top"><{$smarty.const._AM_TODAY}><br /><br /></caption>
      <tr>
        <th scope="col"><{$smarty.const._AM_HR_HOUR}></th>
        <th scope="col"><{$smarty.const._AM_DATE_VISITS}></th>
      </tr>
	  <{foreach item=hours_map from=$hours_map}>
      <tr>
        <td width="20%" class="option"><div style="margin:5px;"><{$hours_map.hour}></div></td>
        <td  width="80%" class="value"><img src="./images/bar/<{$img_bar}>" title="<{$hours_map.percent}>%" alt="<{$hours_map.percent}>%" width="<{$hours_map.percent}>%" height="16" /><{$hours_map.info}></td>
      </tr>
	  <{/foreach}>
    </table>
	<span><a href="javascript:;" onclick="javascript:masque('<{$smarty.const._AM_HR_HOUR}>')" ><{$smarty.const._AM_VIEW}></a></span>
	<br /><br />
	<div id="masque_<{$smarty.const._AM_HR_HOUR}>" style="display: none;">
	<table class="outer" width="100%" border="0" cellspacing="1" cellpadding="4" align="center">
	<tr>
	<td class="head" width="33%" align="center"><{$smarty.const._AM_HR_HOUR}></td>
	<td class="head"  width="33%" align="center"><{$smarty.const._AM_DATE_VISITS}></td>
	<td class="head"  width="33%"  align="center"><{$smarty.const._AM_DATE_PERCENT}></td>
	</tr>
	<{foreach item=hours from=$hours}>
	 <tr class="<{cycle values="even,odd"}>" valign="center"> 
	 <td align="center"><{$hours.hour}></td>
	<td align="center"><{$hours.info}></td>
	  <td align="center"><{$hours.percent}>%</td> 	
	</tr>
	<{/foreach}>
	</table>
	</div>
</div>

 
 <div id="ref">
	<table class="map" cellspacing="0" cellpadding="0">
      <caption align="top"><{$smarty.const._AM_BY_REF}><br /><br /></caption>
      <tr>
        <th scope="col"><{$smarty.const._AM_REF_REF}></th>
        <th scope="col"><{$smarty.const._AM_DATE_VISITS}></th>
      </tr>
	  <{foreach item=refs_map from=$refs_map}>
      <tr>
        <td width="20%" class="option"><div style="margin:5px;" title="<{$refs_map.title}>" alt="<{$refs_map.title}>"><{$refs_map.ref}></div></td>
        <td  width="80%" class="value"><img src="./images/bar/<{$img_bar}>" title="<{$refs_map.percent}>%" alt="<{$refs_map.percent}>%" width="<{$refs_map.percent}>%" height="16" /><{$refs_map.info}></td>
      </tr>
	  <{/foreach}>
    </table>
	<span><a href="javascript:;" onclick="javascript:masque('<{$smarty.const._AM_REF_REF}>')" ><{$smarty.const._AM_VIEW}></a></span>
	<br /><br />
	<div id="masque_<{$smarty.const._AM_REF_REF}>" style="display: none;">
	<table class="outer" width="100%" border="0" cellspacing="1" cellpadding="4" align="center">
	<tr>
	<td class="head" align="center"><{$smarty.const._AM_REF_REF}></td>
	<td class="head" align="center"><{$smarty.const._AM_DATE_VISITS}></td>
	<td class="head" align="center"><{$smarty.const._AM_DATE_PERCENT}></td>
	</tr>
	<{foreach item=refs from=$refs}>
	 <tr class="<{cycle values="even,odd"}>" valign="center"> 
	<td width="33%" align="center"><span title="<{$refs.title}>" alt="<{$refs.title}>"><{$refs.ref}></span></td>
	<td width="33%" align="center"><{$refs.info}></td>
	  <td width="33%" align="center"><{$refs.percent}>%</td> 	
	</tr>
	<{/foreach}>
	</table>
	</div>
</div> 

 <div id="pays">
	<table class="map" cellspacing="0" cellpadding="0">
      <caption align="top"><{$smarty.const._AM_BY_PAYS}><br /><br /></caption>
      <tr>
        <th scope="col"><{$smarty.const._AM_BY_COUNTRY}></th>
        <th scope="col"><{$smarty.const._AM_DATE_VISITS}></th>
      </tr>
	  <{foreach item=payss_map from=$payss_map}>
      <tr>
        <td width="20%" class="option"><div style="margin:1px;"><{$payss_map.flag}></div></td>
        <td  width="80%" class="value"><img src="./images/bar/<{$img_bar}>" title="<{$payss_map.percent}>%" alt="<{$payss_map.percent}>%" width="<{$payss_map.percent}>%" height="16" /><{$payss_map.info}></td>
      </tr>
	  <{/foreach}>
    </table>
	<span><a href="javascript:;" onclick="javascript:masque('4')" ><{$smarty.const._AM_VIEW}></a></span>
	<br /><br />
	<div id="masque_4" style="display: none;">
	<table class="outer" width="100%" border="0" cellspacing="1" cellpadding="4" align="center">
	<tr>
	<td class="head" align="center"></td>
	<td class="head" align="center"><{$smarty.const._AM_BY_COUNTRY}></td>
	<td class="head" align="center"><{$smarty.const._AM_DATE_VISITS}></td>
	<td class="head" align="center"><{$smarty.const._AM_DATE_PERCENT}></td>
	</tr>
	<{foreach item=payss from=$payss}>
	 <tr class="<{cycle values="even,odd"}>" valign="center"> 
	<td width="10%" align="center"><{$payss.flag}></td>
	<td width="30%" align="center"><{$payss.pays}></td>
	<td width="10%" align="center"><{$payss.info}></td>
	  <td width="10%" align="center"><{$payss.percent}>%</td> 	
	</tr>
	<{/foreach}>
	</table>
	</div>
</div>  
 
</div>

<br /><br style="clear: both;" />